home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Misc / ClipNotes.1.0 / Source / CNAppManager.h < prev    next >
Text File  |  1995-06-12  |  2KB  |  97 lines

  1. /* CNAppManager.h                 
  2.  *
  3.  * This is the basic controller of the App. It manages all hig abstraction
  4.  * tasks for the panel, documents and connections to the outside.
  5.  *
  6.  * Usage: This is not a very reusable object. 
  7.  *
  8.  * Written by:         Thomas Engel
  9.  * Created:            25.01.1995 (Copyleft)
  10.  * Last modified:     25.01.1995
  11.  */
  12.  
  13. #import <appkit/appkit.h>
  14.  
  15. @interface CNAppManager:Object
  16. {
  17.     id    notesWindow;
  18.     id    notesText;
  19.  
  20.     id    newPasteCountField;
  21.     int    newPastes;
  22.  
  23.     // About the defaults.
  24.  
  25.     id    enableServicesSwitch;
  26.     id    saveWithBackupSwitch;
  27.     id    notesPathField;
  28.     id    replaceSelectionSwitch;
  29.     id    notesCreationModeSwitch;
  30.     id    notesTemplateText;
  31.     id    timeFormatField;
  32.     id    dateFormatField;
  33.  
  34.     id    composeText;
  35.     id    tempNoteText;
  36.     id    tempPb;
  37.     BOOL    _isEscaping;
  38.     BOOL    _notesLoaded;
  39.  BOOL _templateChanged;
  40.  BOOL _firstActivation;
  41. }
  42.  
  43. // Some methods need to get the app started..
  44.  
  45. - appWillInit:sender;
  46. - appDidInit:sender;
  47. - (int)app:sender openFile:(const char *)path type:(const char *)type;
  48. - (BOOL)appAcceptsAnotherFile:sender;
  49. - appDidBecomeActive:sender;
  50. - appWillTerminate:sender;
  51. - app:sender powerOffIn:(int)ms andSave:(int)aFlag;
  52. - powerOff:(NXEvent *)theEvent;
  53.  
  54. // Here we do the handling of our Panels & Tools
  55.  
  56. - showInfo:sender;
  57. - showPreferences:sender;
  58. - preferences;
  59.  
  60. - openDefaults;
  61. - saveDefaults;
  62.  
  63. // Here we have the methods the control our document. They work via the
  64. // first responder chain.
  65.  
  66. - new:sender;
  67. - open:sender;
  68. - save:sender;
  69. - revert:sender;
  70.  
  71. - print:sender;
  72. - escape:sender;
  73.  
  74. // doing the work...
  75.  
  76. - copyNotesTemplate;
  77. - pasteAsNote:sender;
  78. - _pasteIt;
  79.  
  80. - note:(id)pb userData:(const char *)udata error:(char **)ermsg;
  81.  
  82. // To see all the changes...
  83.  
  84. - textDidChange:sender;
  85.  
  86. @end
  87.  
  88. /*
  89.  * History: 13.01.95 Bla.
  90.  *
  91.  *
  92.  * Hints: This Object could be defined as a subclass of a general docManager
  93.  *         like the one provided by the NeXT-miniexamples...Maybe later or never
  94.  *
  95.  *
  96.  * Bugs: No bugs and birds seen....
  97.  */